package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: shy
 * @Date: 2021/05/05/22:38
 * @Description:
 */
// 默认只会扫描同级目录，所以开启组件扫描  扫描com.atguigu.servicebase.config包的SwaggerConfig

@ComponentScan(basePackages = "com.atguigu")
@EnableFeignClients  // nacos注册
@SpringBootApplication
@EnableDiscoveryClient
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
